'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  console.log('router==============>get===========>findall');
  router.get('/index',controller.equipment.index);
  router.get('/findEquipmentAll', controller.equipment.findEquipmentAll);
  router.put('/updateEquipmentByNumber', controller.equipment.updateEquipmentByNumber);
  router.get('/findEquipmentByNumber', controller.equipment.findEquipmentByNumber);
  router.post('/insertEquipment', controller.equipment.insertEquipment);
  router.delete('/deleteEquipmentByNumber', controller.equipment.deleteEquipmentByNumber);
};
